const path = require('path')

console.log(path.basename('/a/b/c/index.html'))

const pathStr = '/a/b/c/index.html'

console.log(path.basename(pathStr, '.html'))